home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 314.adf / Zc / zcsrc.lzh / IOLib / strlib / strrpbrk.c < prev    next >
C/C++ Source or Header  |  1988-11-09  |  263b  |  17 lines

  1. #include <stddef.h>
  2.  
  3. char *strrpbrk(string, set)
  4.     register char *string, *set;
  5.     {
  6.     register char *p;
  7.     char *strrchr(), *strchr();
  8.  
  9.     p = strrchr(string, '\0');        /* start at EOS */
  10.     while(string != p)
  11.         {
  12.         if(strchr(set, *--p))
  13.             return(p);
  14.         }
  15.     return(NULL);
  16.     }
  17.